package me.jollyfly.jshop.web.portal.controller

import org.springframework.stereotype.Controller
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.PathVariable
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RequestMethod


/**
 *
 */

@Controller
open class PageController {

    @GetMapping("home/{pageName}.html")
    fun toPage(@PathVariable pageName:String):String{
        return pageName
    }

    @GetMapping("/login.html")
    fun toLogin():String{
        return "login"
    }


}